/*
 * @Descripttion: 江苏地图 json
 * @version: 
 * @Author: qianlishi
 * @Date: 2021-08-29 07:31:21
 * @LastEditors: qianlishi
 * @LastEditTime: 2021-09-28 14:17:20
 */
export const widgetJinagSuMap = {
  code: 'widget-jiang-su-map',
  type: 'chart',
  label: '江苏地图',
  icon: 'iconzhongguoditu',
  options: {
    setup: [
      {
        type: 'el-input-text',
        label: '图层名称',
        name: 'layerName',
        required: false,
        placeholder: '',
        value: '江苏地图',
      },
    ],
    // 数据
    data: [
      {
        type: 'el-radio-group',
        label: '数据类型',
        name: 'dataType',
        require: false,
        placeholder: '',
        selectValue: true,
        selectOptions: [
          {
            code: 'staticData',
            name: '静态数据',
          },
          {
            code: 'dynamicData',
            name: '动态数据',
          },
        ],
        value: 'staticData',
      },
      {
        type: 'el-input-number',
        label: '刷新时间(毫秒)',
        name: 'refreshTime',
        relactiveDom: 'dataType',
        relactiveDomValue: 'dynamicData',
        value: 5000
      },
      {
        type: 'el-button',
        label: '静态数据',
        name: 'staticData',
        required: false,
        placeholder: '',
        relactiveDom: 'dataType',
        relactiveDomValue: 'staticData',
        value: [
          { name: '南京市', industrialGardenCount: 500, cooperativeEnterpriseCount: 12, historicalEmploymentCount: 213, internsCount: 444, value: 4822023 },
          { name: '常州市', industrialGardenCount: 123, cooperativeEnterpriseCount: 21, historicalEmploymentCount: 123, internsCount: 33, value: 731449 },
          { name: '徐州市', industrialGardenCount: 32, cooperativeEnterpriseCount: 21, historicalEmploymentCount: 600, internsCount: 333, value: 6553255 },
          { name: '淮安市', industrialGardenCount: 12, cooperativeEnterpriseCount: 22, historicalEmploymentCount: 12, internsCount: 300, value: 2949131 },
          { name: '南通市', industrialGardenCount: 51100, cooperativeEnterpriseCount: 12, historicalEmploymentCount: 12, internsCount: 122, value: 38041430 },
          { name: '宿迁市', industrialGardenCount: 5100, cooperativeEnterpriseCount: 22, historicalEmploymentCount: 12, internsCount: 12121, value: 5187582 },
          { name: '无锡市', industrialGardenCount: 1, cooperativeEnterpriseCount: 33, historicalEmploymentCount: 22, internsCount: 12312, value: 3590347 },
          { name: '扬州市', industrialGardenCount: 5010, cooperativeEnterpriseCount: 44, historicalEmploymentCount: 22, internsCount: 12312, value: 917092 },
          { name: '盐城市', industrialGardenCount: 2, cooperativeEnterpriseCount: 55, historicalEmploymentCount: 323, internsCount: 300, value: 632323 },
          { name: '苏州市', industrialGardenCount: 2, cooperativeEnterpriseCount: 66, historicalEmploymentCount: 602320, internsCount: 1231, value: 1931751 },
          { name: '泰州市', industrialGardenCount: 3, cooperativeEnterpriseCount: 77, historicalEmploymentCount: 121, internsCount: 301231230, value: 9919945 },
          { name: '镇江市', industrialGardenCount: 4, cooperativeEnterpriseCount: 12, historicalEmploymentCount: 121, internsCount: 1231, value: 1392313 },
          { name: '连云港市', industrialGardenCount: 3, cooperativeEnterpriseCount: 122, historicalEmploymentCount: 44, internsCount: 22, value: 1595728 }
        ],
      },
      {
        type: 'dycustComponents',
        label: '',
        name: 'dynamicData',
        required: false,
        placeholder: '',
        relactiveDom: 'dataType',
        chartType: 'widget-map',
        dictKey: 'TEXT_PROPERTIES',
        relactiveDomValue: 'dynamicData',
      },
    ],
    position: [
      {
        type: 'el-input-number',
        label: '左边距',
        name: 'left',
        required: false,
        placeholder: '',
        value: 0,
      },
      {
        type: 'el-input-number',
        label: '上边距',
        name: 'top',
        required: false,
        placeholder: '',
        value: 0,
      },
      {
        type: 'el-input-number',
        label: '宽度',
        name: 'width',
        required: false,
        placeholder: '该容器在1920px大屏中的宽度',
        value: 600,
      },
      {
        type: 'el-input-number',
        label: '高度',
        name: 'height',
        required: false,
        placeholder: '该容器在1080px大屏中的高度',
        value: 400,
      },
    ]
  }
}
